import { get, post } from '@/utils/request';
import api from './api';

export async function authLogin(data: object) {
  return post(api.authLogin, data);
}

export async function userInfo(data: object) {
  return get(api.userInfo, data);
}

export async function getMenuInfo(data: object) {
  return get(api.getMenuInfo, {});
}

export async function getBtnPermission(data: string) {
  return get(api.getBtnPermission + '/' + data, {});
}
